From: Guillaume Desmottes Date: Tue, 5 Jun 2012 10:37:06 +0000 (+0200) Subject: telepathyClient: decline dispatch op when approving unsupported channel type X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6466 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e112fa92fe5f30054629ad65a0f44345d980752a;p=gnome-shell.git telepathyClient: decline dispatch op when approving unsupported channel type It shouldn't happen in theory but best to be safe than sorry. https://bugzilla.gnome.org/show_bug.cgi?id=677457 --- diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index aecf64370..ca60e31a0 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -237,6 +237,8 @@ const Client = new Lang.Class({ this._approveCall(account, conn, channel, dispatchOp, context); else if (chanType == Tp.IFACE_CHANNEL_TYPE_FILE_TRANSFER) this._approveFileTransfer(account, conn, channel, dispatchOp, context); + else + Shell.decline_dispatch_op(context, 'Unsupported channel type'); }, _approveTextChannel: function(account, conn, channel, dispatchOp, context) {